package model.model03.demo03;

import com.model.model03.demo03.decorator.BigSneakersDecorator;
import com.model.model03.demo03.decorator.BigTrouserDecorator;
import com.model.model03.demo03.decorator.TshirtsDecorator;
import com.model.model03.demo03.entity.Person;

public class Main {

    public static void main(String[] args) {
        Person p = new Person();
        p.setName("张三");

        TshirtsDecorator tsd = new TshirtsDecorator();
        BigTrouserDecorator btd = new BigTrouserDecorator();
        BigSneakersDecorator bsd = new BigSneakersDecorator();

        tsd.setDecorator(p);
        btd.setDecorator(tsd);
        bsd.setDecorator(btd);
        bsd.show();
    }
}
